public class Client {
   public static void main(String[] args) {
      Bird bird = new Eagle(new AbleFly(),new UnableSwim());
      bird.display();
      System.out.println("=================================");
      Bird bird2 = new Piegon(new AbleFly(),new UnableSwim());
      bird2.display();
      System.out.println("=================================");
      //penguin
      Bird bird1 = new Penguin(new UnableFly(),new AbleSwim());
      bird1.display();
   }
}

